#ifndef GDCOMLIB_H_H_
#define GDCOMLIB_H_H_
#include <Windows.h>

#include "./inc/util.h"
#include "./inc/ShareMemory.h"
#include "./inc/tpool.h"
#include "./inc/servhlpr.h"
#include "./inc/deelx.h"

#include "./inc/string/StrUtil.h"
#include "./inc/string/PrintFormater.h"
#include "./inc/string/base64.h"
#include "./inc/string/mstring.h"
#include "./inc/string/StrFormat.h"

#include "./inc/sqlite/sqlite3.h"
#include "./inc/sqlite/SqliteOperator.h"

#include "./inc/socket/tcpclient.h"
#include "./inc/socket/tcpserv.h"
#include "./inc/socket/GroupClient.h"
#include "./inc/socket/GroupServer.h"

#include "./inc/gui/DialogBase.h"
#include "./inc/gui/winsize.h"

#include "./inc/hash/crc32.h"
#include "./inc/hash/md5.h"

#include "./inc/ipc/ShareMemoryMsgClient.h"
#include "./inc/ipc/ShareMemoryMsgUtil.h"

extern "C"
{
#include "./inc/lua/lua.h"
#include "./inc/lua/lauxlib.h"
#include "./inc/lua/lualib.h"
};

#define   LIBPATH(p,f)   p##f 

#ifdef _DEBUG
    #if (WIN64 || _WIN64)
        #if (_MT && _DLL)
            // x64 Debug MD
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_debug_md_x64.lib"))
        #else
            // x64 Debug MT
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_debug_mt_x64.lib"))
        #endif
    #else
        #if (_MT && _DLL)
            // win32 Debug MD
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_debug_md_x86.lib"))
        #else
            // win32 Debug MT
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_debug_mt_x86.lib"))
        #endif
    #endif // WIN64
#else
    #if (WIN64 || _WIN64)
        #if (_MT && _DLL)
            // x64 Release MD
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_release_md_x64.lib"))
        #else
            // x64 Release MT
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_release_mt_x64.lib"))
        #endif
    #else
        #if (_MT && _DLL)
            // win32 Release MD
            #pragma comment(lib, LIBPATH(__FILE__, "/../libs/comlib_vs2008_release_md_x86.lib"))
        #else
            // win32 Release MT
            #pragma comment(lib, LIBPATH(__FILE__,"/../libs/comlib_vs2008_release_mt_x86.lib"))
        #endif
    #endif // WIN64
#endif // _DEBUG
#endif // GDCOMLIB_H_H_
